package com.itedge.solutionmanager.service.process.impl.customer;

import org.apache.log4j.Logger;

import org.activiti.engine.HistoryService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.itedge.solutionmanager.domain.impl.Customer;
import com.itedge.infrastructure.service.domain.IProcessEntityService;
import com.itedge.infrastructure.service.process.impl.AbstractProcessService;

/**
 * Service class for interacting with customer processes via activiti services
 * @author jhe
 *
 */
@Service
public class CustomerProcessService extends AbstractProcessService<Customer> {

	@SuppressWarnings("unused")
	private static final Logger logger = Logger.getLogger(CustomerProcessService.class);

    private static final String CUSTOMER_PROCESS_KEY = "CustomerProcess";	
    
	@Autowired
    protected CustomerProcessService(RuntimeService runtimeService, TaskService taskService, 
    		HistoryService historyService, IProcessEntityService<Customer> customerService) {
		super(runtimeService, taskService, historyService, customerService);
	}
    
	@Override
	public String getProcessKey() {
		return CUSTOMER_PROCESS_KEY;
	}  
  
}
